import java.util.Scanner;

public class homework01 {
    public static void main(String[] args) {
        /**
         * 从键盘上输入5句话，逆序输出
         */
        Scanner sc = new Scanner(System.in);
        String[] arr = new String[5];
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入第" + i + "句话");
            arr[i] = sc.next();
        }
        for (int i = arr.length - 1; i >= 0; i--) {
            System.out.println(arr[i]);
        }
    }
}
